#!/bin/bash
before=$1
after=$2
for file in $(ls $before*); do 
mv $file $after$(expr substr $file $(expr $(expr length $before) + 1) $(expr $(expr length $file) - $(expr length $before)))
done
